<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Map常量管理</title>
    <%@ include file="/common/meta.jsp" %>
    <%@ include file="/common/public_input.jsp" %>
    <%@ include file="/common/public.jsp" %>

    <script type="text/javascript" src="${ctx}/js/validate/jquery.validate.js"></script>
    <script type="text/javascript" src="${ctx}/js/validate/messages_cn.js"></script>
    <script>
        $(document).ready(function() {

            /* $("#inputForm").validate({
             onsubmit: true,
             rules: {
             name:{
             required:true,
             maxlength:50
             },
             code:{
             required:true,
             maxlength:100
             }
             },
             messages: {
             name:{
             remote:'名称已存在'
             },
             code:{
             remote:'编码已存在'
             }
             }
             });*/
        });
    </script>
</head>

<body>
<div class="div-tabs-nav">
    <ul class="ui-tabs-nav">
        <li class="ui-tabs-selected">频道</li>
    </ul>
</div>

<div class="ui-tabs-panel">
    <form id="inputForm" action="${ctx}/channel/channel/save.action" method="post">
        <div id="message"><s:actionmessage theme="custom" cssClass="success"/></div>
        <div>频道<s:if test="id!=0">信息</s:if><s:else>创建</s:else></div>
        <table class="noborder">
            <s:if test="id!=0">
                <tr>
                    <td>ID:</td>
                    <td>
                        <s:textfield name="id" size="40" readonly="true"/>
                    </td>
                </tr>
            </s:if>
            <tr>
                <td>频道名称:</td>
                <td>
                    <s:textfield name="name" size="40" maxLength="50"/>
                </td>
            </tr>

            <tr>
                <td>频道简称:</td>
                <td>
                    <s:textfield name="shortName" size="40" maxLength="50"/>
                </td>
            </tr>


            <tr>
                <td>节目单代码:</td>
                <td>
                    <s:textfield name="universalCode" size="40" maxLength="50"/>
                </td>
            </tr>

            <tr>
                <td>频道描述:</td>
                <td>
                    <s:textfield name="description"   size="40" maxLength="50"/>
                </td>
            </tr>

            <tr>
                <td>大V账号:</td>
                <td>
                    <s:textfield name="passportId"   size="40" maxLength="50"/>
                </td>
            </tr>

            <tr>
                <td>百科ID:</td>
                <td>
                    <s:textfield name="ppsBaikeId"   size="40" maxLength="50"/>
                </td>
            </tr>

            <tr>
                <td>类型:</td>
                <td>
                    <s:radio  name="liveType" list="@com.iqiyi.pps.epg.core.model.channel.ChannelBase@LIVE_TYPE_MAP" />
                </td>
            </tr>
            <tr>
                <td>分类:</td>
                <td>
                    <s:radio  name="type" list="@com.iqiyi.pps.epg.core.model.channel.ChannelBase@TYPE_MAP" />
                </td>
            </tr>

            <tr>
                <td>地区:</td>
                <td>
                    <s:textfield name="location"   size="40" maxLength="50"/>
                </td>
            </tr>

            <tr>
                <td>logo地址:</td>
                <td>
                    <s:textfield name="logoUrl"   size="40" maxLength="300"/>
                </td>
            </tr>

            <tr>
                <td>回看时间:</td>
                <td>
                    <s:textfield name="maxPlaybackPeriod"   size="40" maxLength="50"/>
                </td>
            </tr>

            <tr>
                <td>别名:</td>
                <td>
                    <s:textfield name="tempName"   size="40" maxLength="50"/>
                </td>
            </tr>

            <tr>
                <td>别名开始时间:</td>
                <td>
                    <s:textfield name="tempStartTime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"  size="40" maxLength="50"/>
                </td>
            </tr>
            <tr>
                <td>别名结束时间:</td>
                <td>
                    <s:textfield name="tempEndTime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"  size="40" maxLength="50"/>
                </td>
            </tr>
            <tr>
                <td>评论ID:</td>
                <td>
                    <s:textfield name="qitanId"   size="40" maxLength="50"/>
                </td>
            </tr>
            <tr>
                <td>排序:</td>
                <td>
                    <s:textfield name="orderBy"   size="40" maxLength="50"/>
                </td>
            </tr>
            <tr>
                <td>启用状态:</td>
                <td>
                    <s:radio  name="isEnable" list="@com.iqiyi.pps.epg.core.model.channel.ChannelBase@ENABLE_MAP" />
                </td>
            </tr>
            <tr>
                <td>大小分类:</td>
                <td>
                    <s:textfield name="tag"   size="40" maxLength="50"/>
                </td>
            </tr>
            <tr>
                <td>是否付费:</td>
                <td>
                    <s:radio  name="isMemeberFree" list="@com.iqiyi.pps.epg.core.model.channel.ChannelBoss@MEMEBER_FREE_MAP" />

                </td>
            </tr>
            <tr>
                <td>付费开始时间:</td>
                <td>
                    <s:textfield name="paidStartTime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"  size="40" maxLength="50"/>
                </td>
            </tr>
            <tr>
                <td>付费结束时间:</td>
                <td>
                    <s:textfield name="paidEndTime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"  size="40" maxLength="50"/>
                </td>
            </tr>

        </table>
        <div align="left">
            <security:authorize ifAnyGranted="AUTH_MANAGER_AUTH,AUTH_ALL">
                <input class="button" type="submit" value="提交"/>&nbsp;
            </security:authorize>
            <input type="reset" class="input-button" value="重置"/>
        </div>
    </form>
</div>
</body>
</html>

